<div class="dialog-body" style="height: 400px;">
    <ul class="dialog-body-ul">
        <li class="dialog-body-li" style="margin-bottom:10px;">
            <div class="dialog-body-item">
                <div class="dialog-label">角色代码</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input" ng-model="ngDialogData.search.code"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">角色名称</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input" ng-model="ngDialogData.search.name" />
                </div>
            </div>
        </li>
        <li class="dialog-body-li" style="margin-bottom:10px;">
            <div class="dialog-body-item">
                <div class="dialog-content" style="width: 300px;">
                    <button class="layui-btn" ng-click="searchClick()">查询</button>
                    <button class="layui-btn" ng-click="resetClick()">重置</button>
                    <button class="layui-btn" ng-click="addRoleForUser()">添加</button>
                </div>
            </div>
        </li>
        <table class="custom_table">
            <tr>
                <td colspan="4">角色列表</td>
            </tr>
        </table>
        <div class="layui-form" style="height:220px;width: 100%;overflow-y: auto;margin-top: 5px">
            <table class="layui-table roleTable">
                <tbody>
                    <tr class="">
                        <th>
                            <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </th>
                        <th>角色代码</th>
                        <th>角色名称</th>
                    </tr>
                    <tr ng-repeat="role in roleList" ng-click="Tools.initTableClick($event)">
                        <td>
                            <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </td>
                        <td ng-bind="role.code"></td>
                        <td ng-bind="role.name"></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page contentBox" style="text-align:center;">
            <div id="rolePages" class="page"></div>
        </div>
    </ul>
</div>
